import hashlib
from Crypto.Hash import SHA256

data = "这是一串用于测试的数据！！！".encode()

print(data)
# Cryptodome
hash_obj = SHA256.new(data)
digest = hash_obj.hexdigest()
print(digest)
''' ba67ca5c6959ea1702d01f3bb22456359e8a6c1a222b07ee73d7500bac76d9af '''